package com.ming.dao;



import com.ming.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Xu,
 * @data 2021/3/17，
 * @time 19:58
 */
@Repository
@Mapper
public interface StaffMapper {
    public int addStaff(Staff staff);

    public int deleteStaff(int sid);

    public int updateStaff(Staff staff);

    public Staff queryStaffById(int sid);

    public List<Staff> queryStaffs();

    Integer queryStaffIdByName(String username);

    Integer getMId();

    Integer queryStaffName(String username);
}
